package com.example.demo.dto;

import lombok.Data;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;

import java.util.List;

/**
 * Created by yhn on 2017/12/7.
 */
@Data
public class OcrphotoData {
    private String item;
    private String itemstring;
    private Itemcoord itemcoord;
    private Word words;
    public OcrphotoData(JSONObject object)throws Exception{
        item = (String)object.get("item");
        itemstring = (String)object.get("itemstring");
        itemcoord = (Itemcoord)object.get("itemcoord");
        words= (Word)object.get("words");
    }
}
